package cn.pxs.service;

import cn.pxs.entity.LargeFile;
import cn.pxs.mapper.LargeFileMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

//图片业务接口实现类
@Service
@Transactional(rollbackFor = Exception.class)
public class LargeFileServiceImpl   implements LargeFileService {
    @Autowired
    private LargeFileMapper largeFileMapper;

    @Override
    //添加
    public void add(LargeFile largeFile) {
        largeFileMapper.add(largeFile);
    }

    @Override
    //id查找图片
    public LargeFile findById(String id) {
        return largeFileMapper.findById(id);
    }

    @Override
    //删除图片
    public void delById(String str) {
        largeFileMapper.delById(str);
    }
}
